using System.Collections.Generic;
using GiveGraphModel;

namespace WebApp.Models
{
    public class ViewUser
    {
        public ViewUser(User user)
        {
            if(user != null)
            {
                Country = user.Country;
                PostalCode = user.ZipCode;
            }
        }

        public string Country { get; set; }
        public string PostalCode { get; set; }
    }

    public class ViewOrganization
    {
        public ViewOrganization(Organization org)
        {
            if(org != null)
            {
                Name = org.Name;
                Locations = org.Locations;
            }
        }

        public string Name { get; set; }
        public ICollection<OrganizationLocation> Locations { get; set; }
    }
}